	$(document).ready(function() {
		setTimeout(function(){
			if(parent.document.getElementById("mainFrame")){ 
				parent.document.getElementById("mainFrame").style.height=document.body.scrollHeight;
				var parentFrame= $('#mainFrame', window.parent.document);
				parentFrame.attr("height",document.body.scrollHeight);
		}
		},1000); 
		
	});
	// loading box
	function loadingOverlay(){
		$("#loading_overlay .loading_message").delay(200).fadeOut(function(){}); 
		$("#loading_overlay").delay(500).fadeOut();  
		//  $("#showMessage").hide('blind', 5000);
	}
	
	window.onload = function () {
		loadingOverlay();   
   	};